/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Util;

/**
 *
 * @author AD_DA
 */
public class Messagebox {
    public static String ThongBao(String message, String  URL)
    {
        String str="<script language='javascript'>"
                +"function showMessage(){"
                + "alert('" + message+ "');"
                + "window.location='" + URL + "';"
                + "}</script>"
                +"showMessage()";
        return str;
    }
    public static String thongBaoAndGoBack(String message)
    {
        String str="<script language='javascript'>"
                + "alert('" + message+ "');"
                + "history.back(1);"
                + "</script>";
        return str;
    }
    
}
